package com.docking.heylo.web.dto;


import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

public class SysUserDto {

    @NotNull(message = "用户ID不能为空", groups = {ResetPassword.class})
    private Integer userId;

    @NotEmpty(message = "用户名不能为空", groups = {Login.class})
    private String userName;

    @NotEmpty(message = "密码不能为空", groups = {Login.class, EditPassword.class, ResetPassword.class})
    private String password;

    private Integer sex;

    private String  realName;

    private String  idCard;

    private String  phone;

    private String  email;

    private String  address;

    @Null(message = "角色不能为空", groups = {Registered.class})
    private Integer roleId;

    private Integer pageNumber = 1;

    private Integer size = 10;

    private Integer locks;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getLocks() {
        return locks;
    }

    public void setLocks(Integer locks) {
        this.locks = locks;
    }

    public interface Login {}
    public interface EditPassword{}
    public interface NewUser{}
    public interface Page{}
    public interface IdNotNull{}
    public interface Edit{}
    public interface ResetPassword{}
    public interface DisableActivation{}
    public interface Registered{}
}
